<script type="text/javascript">
    $(function() {
        $.fn.dataGridOptions.formSubFun("#form",'/modules/user/score/goods/doShelves.html');
    });
</script>
<div class="popShow" style="padding-bottom:0">
        <div class="showItem">
            <span>商品名称：</span>${goods.name}
        </div>
        <div class="showItem">
            <span>商品类别：</span>${category.name}
        </div>
        <div class="showItem">
            <span>商品状态：</span><#if goods.status == 0 >待审核
            <#elseif goods.status == 1>审核通过<#elseif goods.status == -1>审核未通过</#if>
        </div>
        <div class="showItem">
            <span>商品类型：</span><#if goods.type == 0 >待上架
            <#elseif goods.type == 1>上架<#elseif goods.type == -1>下架</#if>
        </div>
        <div class="showItem">
            <span>所需积分：</span>${goods.score}分
        </div>
        <div class="showItem">
            <span>市场价：</span>${goods.marketPrice}元
        </div>
        <div class="showItem">
            <span>商品库存：</span>${goods.store}件
        </div>
        <div class="showItem">
            <span>虚拟商品：</span><#if goods.isVirtual == 1>是<#else>否</#if>
        </div>
</div>
<div class="popForm" style="padding-top:0;padding-bottom:0;">
      <div class="formitm">
		<label style="width:130px;" class="lab">商品详情：</label>
		<div style="margin-left:140px;color:#000;border:1px solid #dedede;" class="ipt">
			<textarea id="description" name="description" style="height:100px;">${(goods.description)?if_exists}</textarea>
		</div>
	</div>
	<div class="formitm">
		<label style="width:130px;" class="lab">商品属性信息：</label>
		<div style="margin-left:140px;color:#000;border:1px solid #dedede;" class="ipt">
			<textarea id="attribute" name="attribute"  style="height:100px;">${(goods.attribute)?if_exists}</textarea>
		</div>
	</div>
	<div class="formitm">
		<label style="width:130px;" class="lab">商品备注：</label>
		<div style="margin-left:140px;color:#000;" class="ipt">
			<textarea name="remark" style="width:500px;" class="easyui-validatebox" readonly maxlength="256">${goods.remark}</textarea>
		</div>
	</div>
	<div class="formitm">
		<label style="width:130px;" class="lab">商品图片：</label>
		<div style="margin-left:140px;color:#000;" class="ipt">
			<ul id="uploadPiclist" style="list-style: none; padding: 0; margin: 0;">
			<img style="width: 100px; height: 100px;" src="${image_server_url}${goods.picPath}" alt="">
            <!--    <#if picList?? && picList.size() gt 0 >
                 <#list picList as item>
                    <li data-mum="${item.id?c}">
                       <img style="width: 100px; height: 100px;"src="${item.picUrl}" alt="">
                    </li>
                </#list>
            </#if> -->
            </ul>
		</div>
	</div>
</div>
<form id="form" method="post">
<div class="popForm" style="padding-top:0;">
	<input name="id" value="${goods.id}" type="hidden"/>
	<div class="formitm">
		<label style="width:130px;"  class="lab">上下架类型：</label>
		<div style="margin-left:140px;" class="ipt">
		<#if (goods.status == 1 || !needVerify) && goods.type == 0>
			<input type="radio" name="type" class="easyui-validatebox" value="1" data-options="required: true" <#if (goods.status == 1 || !needVerify) && goods.type == 0>checked="checked"</#if>/>上架
		<#elseif (goods.status == 1 || !needVerify) && goods.type == 1>
			<input type="radio" name="type" class="easyui-validatebox" value="-1" data-options="required: true" <#if (goods.status == 1 || !needVerify) && goods.type == 1>checked="checked"</#if> />下架
		<#elseif (goods.status == 1 || !needVerify) && goods.type == -1>
			<input type="radio" name="type" class="easyui-validatebox" value="1" data-options="required: true" <#if (goods.status == 1 || !needVerify) && goods.type == -1>checked="checked"</#if> />重新发布
		</#if>
		</div>
	</div>
	<div class="formitm">
		<label style="width:130px;" class="lab">操作备注：</label>
		<div style="margin-left:140px;" class="ipt">
			<textarea name="operatorRemark" class="w300 easyui-validatebox" data-options="required: true" maxlength="128" ></textarea>
		</div>
	</div>
</div>
</form>
<!-- 编辑器 -->
<script type="text/javascript" src="/plugins/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="/plugins/uploadify/jquery.uploadify.js"></script>
<link rel="stylesheet" href="/plugins/uploadify/uploadify.css" type="text/css">
<script type="text/javascript">
    // 编辑器调用
    var tinymceEditor;
    tinymce.init({
        mode : "textareas",
        theme : "modern",//定义显示类别
        language:'zh_CN',//设置语言
        plugins: "fullscreen",
        theme_advanced_toolbar_location : "top",//定义工具栏的位置
        theme_advanced_toolbar_align : "left", //定义工具栏工具的对其方式
        selector: "#description",
        theme_advanced_statusbar_location : "bottom",//定义输入框下方是否显示状态栏，默认不显示
        theme_advanced_resizing : true,//定义是否可以改变输入窗口大小
        menubar: false,//菜单栏
        toolbar:"fullscreen",
        theme_advanced_toolbar_location : "top",//定义工具栏的位置
        theme_advanced_toolbar_align : "left",//定义工具栏工具的对其方式
        toolbar_items_size: 'small',//工具栏图标大小
        statusbar  : false //控制底部状态栏是否显示
    });
	
    var tinymceEditor1;
    tinymce.init({
        mode : "textareas",
        theme : "modern",//定义显示类别
        language:'zh_CN',//设置语言
        plugins: "fullscreen",
        theme_advanced_toolbar_location : "top",//定义工具栏的位置
        theme_advanced_toolbar_align : "left", //定义工具栏工具的对其方式
        selector: "#attribute",
        theme_advanced_statusbar_location : "bottom",//定义输入框下方是否显示状态栏，默认不显示
        theme_advanced_resizing : true,//定义是否可以改变输入窗口大小
        menubar: false,//菜单栏
        toolbar:"fullscreen",
        theme_advanced_toolbar_location : "top",//定义工具栏的位置
        theme_advanced_toolbar_align : "left",//定义工具栏工具的对其方式
        toolbar_items_size: 'small',//工具栏图标大小
        statusbar  : false //控制底部状态栏是否显示
    });
    
    $(".fileshow").fancybox();
</script>

